﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Zj.CourseManage.Domain.Core
{
    /// <summary>
    /// office
    /// </summary>
    public class Office
    {
        public Office()
        {
            this.Name = string.Empty;
            this.Teachers = new HashSet<Teacher>();
        }
        [Key,DatabaseGenerated( DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }


        [Required]
        [StringLength(30,MinimumLength =3)]
        public string  Name { get; set; }




        public virtual ICollection<Teacher> Teachers { get; set; }
    }
}
